#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;
int main(void){
    int t,a,b,c;
    int ca=1;
    scanf("%d",&t);
    while(t--){
        scanf("%d%d%d",&a,&b,&c);
        printf("Scenario #%d:\n",ca++);
        if(a*a+b*b==c*c){
            printf("yes\n");
        }
        else{
            printf("no\n");
        }
        printf("\n");
    }
    return 0;
}